﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<PhotoCollection>" %>
<%@ Import Namespace="WroxGallery.Models"%>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
<h2><%= Html.Encode(ViewData["AlbumName"]) %></h2>
<%foreach (Photo photo in Model)
    {%>
    <dl class="photo">
        <dt><a href="<%=photo.Url %>" rel="lightbox"><img src="<%=photo.ThumbUrl %>" alt="<%=photo.Title %>" /></a></dt>
        <dd><h3><%=Html.Encode(photo.Title) %></h3><%=Html.Encode(photo.Description) %></dd>
    </dl>
    <%}%>
</asp:Content>
